#include "intrp2d_u16ffu8fl_pw.h"
#include "rtwtypes.h"

real32_T intrp2d_u16ffu8fl_pw(const uint8_T bpIndex[], const real32_T frac[],
  const uint16_T table[], const uint32_T stride)
{
  real32_T yL_1d;
  uint32_T offset_1d;
  uint16_T yL_0d0;
  offset_1d = bpIndex[1U] * stride + bpIndex[0U];
  yL_0d0 = table[offset_1d];
  yL_1d = ((real32_T)table[offset_1d + 1U] - (real32_T)yL_0d0) * frac[0U] +
    (real32_T)yL_0d0;
  offset_1d += stride;
  yL_0d0 = table[offset_1d];
  return ((((real32_T)table[offset_1d + 1U] - (real32_T)yL_0d0) * frac[0U] +
           (real32_T)yL_0d0) - yL_1d) * frac[1U] + yL_1d;
}
